package com.zyw.module.console.qywx.api.response;

/**
 * @author zhangyw
 * @date 2017/3/31 10:07
 */
public class AccessTokenResponse extends WXBaseResponse {

    private String access_token;
    private int expires_in;

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public int getExpires_in() {
        return expires_in;
    }

    public void setExpires_in(int expires_in) {
        this.expires_in = expires_in;
    }

    @Override
    public boolean isSuccess() {
        return getErrcode() == null || access_token != null;
    }
}
